
from unit01.TestCase.conftest import TestCase
from unit01.Tool.Tool import Tool
import unittest

if __name__ == '__main__':

    tool_obj=Tool()
    #调用日志
    tool_obj.log()

    #报告
    suite=unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestCase))
    tool_obj.baogao(suite)

    #邮件
    attachments=[r'C:\Users\Kaka\PycharmProjects\PythonProject39yuekao812\unit01\TestCase\conftest.py','baidufirstpagewebtestlog.log']
    tool_obj.send_email(attachments)
